/*
 * CNews.cpp
 *
 *  Created on: 3 oct. 2009
 *      Author: Maxime Gaudin
 */

#ifndef IOSTREAM_H
	#include <iostream>
	#define IOSTREAM_H
#endif

#include "CNews.h"

// Constructeur & Destructeur =======================================================================================
CNews::CNews(std::string Title, std::string Description, std::string PubDate, std::string Category, std::string Link)
{
	title 		= Title;
	description = Description;
	pubDate 	= PubDate;
	category 	= Category;
	link 		= Link;
}

CNews::~CNews() { }
// ==================================================================================================================

// Getters ==================================================
std::string CNews::getDescription() 	{return description;}
std::string CNews::getLink() 			{return link;}
std::string CNews::getTitle()			{return title;}
std::string CNews::getPubDate()			{return pubDate;}
std::string CNews::getCategory()		{return category;}
// ==========================================================

void CNews::DisplayNews()
{
	std::cout << "( " << category << " ) - " <<  title << std::endl;
	std::cout << "          " << pubDate << std::endl;
	std::cout << std::endl;
	std::cout << description << std::endl;
	std::cout << std::endl;
	std::cout << "[" << link << "]" << std::endl;
}
